Repository navigation
Update dependency dts-bundle-generator to v10 - #117
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^6.12.0→^10.0.0Release Notes
timocov/dts-bundle-generator (dts-bundle-generator)
v10.0.0: 10.0.0Compare Source
Release notes
This is a major release: the package is now an ES module, the CLI moved from yargs to commander, the minimum supported Node.js and TypeScript versions are raised, TypeScript 6 is supported, and the default value of the
exportReferencedTypesoption has changed. See the "Breaking changes" section below before upgrading.It also has a lot of fixes for name collisions/renaming, plus noticeable performance improvements on big projects.
Thanks to @mnaoumov, @matortheeternal and @slhck for the contributions 🙏
Breaking changes
"type": "module"). It can still be loaded withrequire()from CommonJS, since Node.js 24 supportsrequire(esm)(see #382)dts-bundle-generator) and the config schema types (dts-bundle-generator/config-schema) can be imported now. Deep imports of other files from the package (e.g.dts-bundle-generator/dist/...) no longer work (see #382)commanderinstead ofyargs. Boolean options no longer accept values (e.g.--sort=falseis an error now), invalid options are reported in commander's format, and the--helplayout changed slightly (see #383)<7because TypeScript 7 doesn't provide a compiler API yet (see #368 and #375)exportReferencedTypesis now disabled by default (--export-referenced-typesdefaults tofalse), so a node is exported only if it is exported from the root source file. If you enable it explicitly, the generation now fails when a referenced type can't be exported because it was renamed to avoid a name collision (see #289 and #369)Added
-hand-vshort flags for--helpand--version(see #383)--check-projectCLI option (checkConfigPathin the config file) to use a separate tsconfig for the validation of generated files, e.g. to validate the output with stricter options (see #293 and #370)--allow-unresolved-import-typesCLI option (compilationOptions.allowUnresolvedImportTypesin the config file) to keepimport()types whose module can't be resolved as is (and print a warning) instead of failing. Useful for libraries that intentionally check for optional modules in their typings (see #376)Changed
commanderhas no dependencies, replacingyargsand the 12 packages it pulled in (see #383)modulekeyword (declare module Foo {}) are now printed asnamespace(see #356 and #380)Fixed
esModuleInteropcompiler flag (see #368)export =module members) (see #339 and #373)RequestandResponsetypes (references to renamed named imports ofexport =namespace members) (see #353 and #378)checkJs: trueand declarations of JS files (see #359 and #372)v9.5.1: 9.5.1Compare Source
Fixed
aa5a334)v9.5.0: 9.5.0Compare Source
Fixed
v9.4.1: 9.4.1Compare Source
Fixed
897a5d5)v9.4.0: 9.4.0Compare Source
Fixed
186e6fd)import *statements with local usage but not directly exporting (see #304 and #309)declare modulestatements only (see #305 and #316)allowArbitraryExtensionscompiler option (see #313) - thanks @stepankuzminv9.3.1: 9.3.1Compare Source
Fixing one little oopsie from v9.3.0 release.
Fixed
8ecb56f)v9.3.0: 9.3.0Compare Source
Changed
43c2058)Fixed
874f801)86fc2ff)2b1b281)c0a7007)v9.2.5: 9.2.5Compare Source
Fixed
inlineDeclareGlobals(seeeb03676)v9.2.4: 9.2.4Compare Source
Added
262286c).v9.2.3: 9.2.3Compare Source
Fixed
643003f)v9.2.2: 9.2.2Compare Source
Fixed
varsymbol renaming (see #285) - thanks @Atrue!v9.2.1: 9.2.1Compare Source
Fixed
globalThisandundefined(as a value) values (see #282 and6a132dd)v9.2.0: 9.2.0Compare Source
Release notes
In this release I tried to adapt tests from api-extractor tool in order to compare results and apart from some passing tests I found a few issues that are fixed in this release.
Fixed
af1736f)import()statement if imported name is imported with renaming (see9edab0d)25703d7)e324b37)export * fromstatements (see0bd1a19)export * fromstatements (see0bdbf07andb27daaa)06e531f)v9.1.0: 9.1.0Compare Source
Release notes
With this release all known bugs in the tool are fixed (especially long-lived ones!) 🎉
Fixed
v9.0.0: 9.0.0Compare Source
Release notes
This release is one of biggest and the most valuable releases in years.
It introduces a fix for a limitation that existed since very first release i.e. resolving of name collisions 🎉.
Now, if you have 2 nodes with the same name in the bundle, one of them will be renamed (by adding
$NUMsuffix) to avoid clashing and accidental declaration merging (but if you have 2 interfaces declared in the same module to have declaration merging it should work as expected too).Because of this new mechanism it helped to address some of the issues that I wasn't aware of but it seems that it existed in some of the packages, i.e. using a wrong name because of renaming during import (
import { name as newName }case) (see "Additional information" section in this PR).One of known changes in the declaration generation with this release is that a function/class/etc that was originally exported with the
defaultexport will never be exported directly but via re-exportexport { name as default }. This should not affect the result of the bundle but I think it is worth to note it.But there is more, please refer to the change log below.
Last but not least, I want to thank @Atrue for the contribution which was a motivation to make this release happen 🙏
Added
Fixed
import asstatements in the code (see #184 and #270)v8.1.2: 8.1.2Compare Source
Fixed
v8.1.1: 8.1.1Compare Source
Fixed
4429eac)v8.1.0: 8.1.0Compare Source
Added
.mtsand.ctsextensions (see #204)v8.0.1: 8.0.1Compare Source
Fixed
declare module Modulestatements from dependencies are inlined despite if it should be imported (see #250 anda725512)v8.0.0: 8.0.0Compare Source
Breaking changes
module ModuleNamestatements (without quotes) (see #237 and #242)Fixed
exportstate of referenced namespaces/modules (see #241 and #242)v7.2.0: 7.2.0Compare Source
Fixed
import()statements (see #234 and #235)v7.1.0: 7.1.0Compare Source
Fixed
2e1b1afand #229)New Contributors
2e1b1afFull Changelog: timocov/dts-bundle-generator@v7.0.0...v7.1.0
v7.0.0: 7.0.0Compare Source
Breaking changes
yargsdependency was upgraded from 17.2 to 17.6es5toes2020(modules are stillcommonjsthough)See #224
Fixed
Many thanks to @josh- for their contribution!
Configuration
📅 Schedule: (in timezone Asia/Tokyo)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.